package com.tmt.im.manager.controller.vo;

import com.tmt.im.common.enums.AddFriendMode;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Nullable;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;

/**
 * @Description TODO
 * @Author wuyi
 * @Date 2024/8/24 23:18
 * @Version 1.0
 **/
@Getter
@Setter
@Tag(name = "好友申请对象", description = "好友申请对象")
public class FriendApplyRequest implements Serializable {

    @Serial
    private static final long serialVersionUID = -3636160066845108368L;

    @Schema(name = "userId", description = "好友用户ID")
    @NotNull(message = "好友用户ID不允许为null")
    private Long userId;

    @Schema(name = "mode", description = "申请好友采用的方式")
    @NotNull(message = "申请好友采用的方式不允许为null")
    private AddFriendMode mode = AddFriendMode.ID;

    @Schema(name = "note", description = "申请时的备注")
    @Nullable
    private String note;

    @Schema(name = "groupId", description = "好友将被归入的好友分组")
    @Nullable
    private Long groupId;
}
